// pages/map/map.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    markers: [{
      latitude: "28.14802",
      longitude: "113.016822",
      title: "title",
      iconPath: "/image/icon_API.png",
      width: 50,
      height: 50,
      alpha: 0.5,
      rotate: 45,
      callout: {
        content: "长沙民政学院",
        color: '#000000',
        display: "ALWAYS",
        fontSize: '50',
        borderRadius: 5,
        padding: 10,
        bgColor: "#66CD00"
      },
      label: {
        content: "长沙民政学院",
        color: '#000000',
        x: 50,
        y: 50,
        fontSize: '50',
        borderRadius: 5,
        padding: 10,
        bgColor: "#66CD00",
        borderColor: "#000000",
        borderWidth: 3,
      }
    }],
    polyline: [{
      points: [{
        latitude: "28.13802",
        longitude: "113.036822"
      },
      {
        latitude: "28.14802",
        longitude: "113.036822"
      }, {
        latitude: "28.15802",
        longitude: "113.046822"
      }],
      color: "#000000AA",
      width: 5,
      borderWidth: 2,
      borderColor: "FF0000",
      dottedLine: true
    }],
    circles: [
      {
        longitude: "113.016822",
        latitude: "28.14802",
        radius: 400,
        color: "#000000AA",
        fillColor: "#bbbbbb00",
        strokeWidth: 2
      }, {
        longitude: "113.016822",
        latitude: "28.12802",
        radius: 400,
        color: "#000000AA",
        fillColor: "#bbbbbb",
        strokeWidth: 2
      }
    ],

    includepoints: [{
      longitude: "113.016822",
      latitude: "28.44802",
    }, {
        longitude: "113.516822",
        latitude: "28.94802",
    }, {
        longitude: "113.016822",
        latitude: "28.84802",
    }]

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})